package leetcode.code1480;

public class RunningSum extends Solution1480 {

	@Override
	public int[] runningSum(int[] nums) {
		for (int i = 1; i < nums.length; i++) {
			nums[i] = nums[i] + nums[i - 1];
		}
		return nums;
	}

	public static void main(String[] args) {
		RunningSum ru = new RunningSum();
		ru.debug1();
		ru.debug2();
		ru.debug3();

	}

}
